﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GraphAPI.Model;

namespace GraphEditor
{
	public partial class Matrix : UserControl
	{
		public Matrix()
		{
			InitializeComponent();
		}

		public Matrix(Graph gr)
		{
			Graphics g = CreateGraphics();

			Font f = new Font("Arial", 8);
			Point p = new Point(10, 10);
			Brush b = Brushes.Wheat;

			foreach (Entity ent in gr.Entitys)
			{
				g.DrawString(ent.Name, f, b, p);
				//p.X +=  
			}
		}
	}
}
